package com.qyl.deguru.service.impl;

import java.util.List;
import java.util.Map;

import com.qyl.deguru.common.PageModel;
import com.qyl.deguru.dao.ShopTypeDao;
import com.qyl.deguru.dao.impl.ShopTypeDaoImpl;
import com.qyl.deguru.dto.Shop;
import com.qyl.deguru.dto.ShopType;
import com.qyl.deguru.service.ShopTypeService;

/**
 *  商品类型实现类
 * */
public class ShopTypeServcieImple implements ShopTypeService{
	ShopTypeDao shopTypeDao=new ShopTypeDaoImpl();
	@Override
	public int getcount() {
		return shopTypeDao.getcount();
	}
	@Override
	public List<ShopType> showShopTypeList(ShopType shopType,
			PageModel pageModel) {
		return shopTypeDao.showShopTypeList(shopType,pageModel);
	}
	@Override
	public int delShopType(String code) {
		return shopTypeDao.delShopType(code);
	}
	@Override
	public int delShopTypes(String[] ids) {
		// TODO Auto-generated method stub
		return shopTypeDao.delShopTypes(ids);
	}
	@Override
	public ShopType getShopTypeByCode(String code) {
		return shopTypeDao.getShopTypeByCode(code);
	}
	@Override
	public int updateShopType(ShopType shopType) {
		return shopTypeDao.updateShopType(shopType);
	}
	@Override
	public int addShopType(ShopType shopType) {
		return shopTypeDao.addShopType(shopType);
	}
	@Override
	public List<Map<String, String>> getTypeList() {
		return shopTypeDao.getTypeList();
	}
	@Override
	public List<ShopType> getShopTypeLimit4() {
		return shopTypeDao.getShopTypeLimit4();
	}
	@Override
	public List<ShopType> getShopTypeLimit8(String tcode) {
		return shopTypeDao.getShopTypeLimit8(tcode);
	}
	@Override
	public String[] getShopeCode(String tcode) {
		// TODO Auto-generated method stub
		return shopTypeDao.getShopeCode(tcode);
	}



}
